//
//  LFConstants.swift
//  SDAutoWeibo
//
//  Created by 刘健 on 16/3/21.
//  Copyright © 2016年 Clemmie. All rights reserved.
//

import UIKit

/// 自定义Log,需要在build settings 里面搜索 preprocessor Macros (OC的配置方式), 在搜索 swift flag 配置debug "-D" "DEBUG"
func LFPrint(file: String = __FILE__, line: Int = __LINE__, function: String = __FUNCTION__, msg: Any) {
    #if DEBUG
        print("\((file as NSString).lastPathComponent)[\(line)行], \(function): \(msg)")
    #endif
}

  //MARK : --  微博授权参数
//申请应用时分配的AppKey。
let LFClient_id: String = "1850609372"

//授权回调页
let LFRedirect_uri: String = "http://www.clemmieliu.com"

//请求的类型
let LFGrant_type: String = "authorization_code"


let LFClient_secret: String = "ac6973cc7cd14a5d404d1a2488cfd04d"

//网络请求baseURL
let baseURL = NSURL(string: "https://api.weibo.com/")


//新特性图片个数
let LFPageCounts: Int = 4

//适配间距
let LFOffSetDefault: CGFloat = 8

  //MARK: --  collectionView相关数据
//行、列间距
let LFSpaceMargin: CGFloat = 8

// cell的最大个数
let LFMAXCellCount = 3

//cell的高，宽度
let LFCollectionCellWH = (UIScreen.mainScreen().bounds.width - 4 * LFSpaceMargin) / CGFloat(LFMAXCellCount)

  //MARK: -- refreshView 相关
let LFRefreshViewH: CGFloat = 60

let LFRefreshAnimationTime = 0.25
